<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="keywords" content="<?php echo $lang['keyword']; ?>">
<meta name="description" content="<?php echo $title.", ". $lang['description']; ?>">
<META name="ROBOTS" content="INDEX,FOLLOW" />
<META name="REVIZIT-AFTER" content="3 days" />

<title><?php echo SITEURL ." - ". $title; ?></title>
<link href="themes/<?php echo $design; ?>/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<!-- main container start -->
<div id="container">
<!-- header start -->
<div id="header">
	<div class="head_text">
    <a href="index.php"><img src="fotos/logo.png" class="head_img"></a>
    <h1><?=$lang['sitename'] ?></h1>
    <h2><?=$lang['slogan'] ?></h2>
    </div>
    <div class="search">
    <form action="view_search.php" method="get" name="searchform" onSubmit="return tekshir_search()">
      <input type="text" name="search" class="searchinput" maxlength="30" value="Nima qidiryapsiz..." 
      onFocus="searchfocus(this)" onBlur="searchblur(this)">
      <input name="" type="submit" value=" " class="search_btn">
    </form>
    </div>
</div>
<!-- header finish -->

<!-- middle start -->
<div id="middle">

    <ul class="topmenu">
	<?php 
    $result3 = mysql_query("SELECT id,page,topmenu FROM pages",$db);
    if (!$result3)
    { myerror("XATOLIK! topmenu uchun pages jadvalidan malumot olinmadi"); }
    
    while($page_row = mysql_fetch_assoc($result3))
    {
    $page[$page_row['page']] = $page_row['topmenu'];
    }
    ?>
    <li><a href='index.php'><?php echo $page['index']; ?> </a></li>
    <li><a href='page.php?p=about'><?php echo $page['about']; ?> </a></li>
    <li><a href='page.php?p=mypage'><?php echo $page['mypage']; ?> </a></li>
    <li><a href='news.php'><?php echo $page['news']; ?> </a></li>
    <li><a href='contact.php'><?php echo $page['contact'];  ?> </a></li>
    </ul>

</div>
<!-- middle finish -->